import redis

rds = redis.Redis()
sub = rds.pubsub()
sub.subscribe('teachers')

for i in sub.listen():
    print(i)